const props = {
  onChange: () => {
    console.log('onChange called')
  }
}

const NOOP = () => 8;
const { onChange = NOOP } = props;
onChange();

function checkStatus() {
  if (isLogin()) {
    if (isVip()) {
      if (isDoubleCheck()) {
        done();
      } else {
        throw new Error("不要重复点击");
      }
    } else {
      throw new Error("不是会员");
    }
  } else {
    throw new Error("未登录");
  }
}